Open Bug 1968262 Opened 9 days ago Updated 8 days ago

Fix a clippy warning in toolkit/components/glean/api/src/private/timespan.rs

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(Not tracked)

People

(Reporter: Sylvestre, Unassigned, Mentored)

References

(Blocks 2 open bugs)

Details

(Keywords: good-first-bug, Whiteboard: [lang=rust])

Filling as a good first bug to learn workflows.

toolkit/components/glean/api/src/private/timespan.rs
  108:17  warning  redundant field names in struct initialization  clippy::redundant_field_names (clippy)

Link to the code:
https://searchfox.org/mozilla-central/source/toolkit/components/glean/api/src/private/timespan.rs#108

to run clippy:

./mach lint -W -l clippy toolkit/components/glean/api/

As the change is trivial, it is just to learn how to contribute to Firefox.

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Blocks: 1968263
Blocks: clippy
No longer depends on: clippy
You need to log in before you can comment on or make changes to this bug.